﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BetterWpfControls.BaseTypes;
using System.Threading;

namespace BetterTab.Demo
{
    public partial class MainWindowModel : ChangeAwareObject
    {
        #region .ctors

        public MainWindowModel()
        {
            Counter = 20;
            Tabs = new List<BetterTabItem>();
        }

        #endregion .ctors

        #region Properties

        /// <summary>
        /// Gets/sets Counter.
        /// </summary>
        public int Counter
        {
            [System.Diagnostics.DebuggerStepThrough]
            get { return p_Counter; }
            [System.Diagnostics.DebuggerStepThrough]
            set
            {
                if (p_Counter != value)
                {
                    p_Counter = value;
                    OnPropertyChanged("Counter");
                    OnCounterChanged();
                }
            }
        }
        private int p_Counter;
        partial void OnCounterChanged();

        /// <summary>
        /// Gets/sets Tabs.
        /// </summary>
        public List<BetterTabItem> Tabs
        {
            [System.Diagnostics.DebuggerStepThrough]
            get { return p_Tabs; }
            [System.Diagnostics.DebuggerStepThrough]
            set
            {
                if (p_Tabs != value)
                {
                    p_Tabs = value;
                    OnPropertyChanged("Tabs");
                    OnTabsChanged();
                }
            }
        }
        private List<BetterTabItem> p_Tabs;
        partial void OnTabsChanged();

        #endregion Properties
    }
}
